function  preProcess( )

load('./weizmann_horse_db/GT_point', 'GT_point')  ;
parentNod   =   0:23;  
colorset = {'g','g','g','g','g','g',   'm', 'm','m','m','m','m','m','m',  'r','r','r',   'g','g','g','g',    'c', 'c','c' };
Num   =     size(GT_point,3);
for i =1:Num
     pos(i).point   =   [  GT_point(:,:,i)];  
end

pos = pointtobox(pos, parentNod);


picName     =     './weizmann_horse_db/gray/';
picName_s  =     './weizmann_horse_db/rgb-s/';
picName_b  =     './weizmann_horse_db/rgb-b/';

for i=1:328
    str = sprintf('%shorse%03d.jpg', picName_b, i);       
    img_b      =    imread(str);
    
    str = sprintf('%shorse%03d.jpg', picName, i);       
    img_g       =   imread(str);
    
    sz             =    size(img_b);
    ratio         =    sz(1:2)./size(img_g);
    if(abs(ratio(1)-ratio(2)) > 0.05 ),     disp(['image-' num2str(i) ' is not same ratio in X-Y axis ']); end;
    
    img_s       =    imresize(img_b, size(img_g));
    str  =  sprintf('%shorse%03d.jpg', picName_s, i);       
    imwrite(img_s, str);
    pos(i).im   =   str;
    
    %box     =   [pos(i).x1; pos(i).y1; pos(i).x2; pos(i).y2];
    %box     =   reshape(box, 1, []);
    
    %showboxes(img_s,  box, colorset);    hold on;
    %plot(GT_point(:,1,i), GT_point(:,2,i), '*', 'color', 'r', 'LineWidth', 5);    hold off;
    
    
end

save('mydata', 'pos', '-append');
